home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / html.h < prev    next >
C/C++ Source or Header  |  1997-01-24  |  1KB  |  44 lines

  1. /* HTML parser declarations.
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18.  
  19. #ifndef HTML_H
  20. #define HTML_H
  21.  
  22. /* Structure of a parser state */
  23. typedef struct {
  24.    int at_value, in_quote;
  25.    char quote_char;
  26.    char *tag, *attr;
  27.    char *base;
  28. } state_t;
  29.  
  30. typedef struct {
  31.    char *tag;
  32.    char *attr;
  33. } tag_t;
  34.  
  35.  
  36. /* Function declarations */
  37. int idmatch PARAMS((tag_t *, const char *, const char *));
  38. const char *htmlfindurl PARAMS((const unsigned char *, int, int *, int));
  39. const char *html_base PARAMS((void));
  40. uerr_t ftp_index PARAMS((const char *, urlinfo *, struct fileinfo *));
  41. char *html_quote_string PARAMS((const char *));
  42.  
  43. #endif /* HTML_H */
  44.